package org.example.java.rmi;

import java.rmi.Naming;

/**
 * User: ZhangJuntao
 * Date: 14-2-11
 * Time: 上午9:47
 */
public class RmiClient {
  public static void main(String args[]) throws Exception {
    RmiServerService obj = (RmiServerService) Naming.lookup("//192.168.1.165/helloWorld");
    System.out.println(obj.getMessage());
  }
}
